package cn.tmall.system.impl;

import cn.tmall.INoticeService;
import cn.tmall.commons.service.impl.BaseServiceImpl;
import cn.tmall.entity.system.Notice;
import cn.tmall.dao.system.NoticeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.apache.dubbo.config.annotation.Service;

import java.util.List;

/**
 * descript
 *
 * @author ：yang
 * @date ：Created in 2019/6/30 11:14
 */
@Service
public class NoticeServiceImpl extends BaseServiceImpl<Notice,Long, NoticeRepository> implements INoticeService {
    @Autowired
    private NoticeRepository noticeRepository;
    @Override
    public List<Notice> findByTitleLike(String title) {
        return noticeRepository.findByTitleLike("%"+title+"%");
    }
}
